package edu.kaist.cs442.client.android.common.pushutil.register;

import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;

/**
 * Created by IntelliJ IDEA.
 * User: duyleekun
 * Date: 2/25/12
 * Time: 9:44 PM
 * To change this template use File | Settings | File Templates.
 */
public class Register extends AsyncTask<Context, Void, Void> {
	@Override
	protected Void doInBackground(Context... contexts) {
		Intent registration = new Intent("com.google.android.c2dm.intent.REGISTER");
		registration.putExtra("app", PendingIntent.getBroadcast(contexts[0], 0, new Intent(), 0));
		registration.putExtra("sender", "duyc2dm@gmail.com");
		contexts[0].startService(registration);
		return null;
	}
}
